package org.brisling.supply.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseTypeDomain;
import org.brisling.base.domain.inf.BaseTreeNodeInf;
import org.brisling.base.domain.inf.BaseTypeDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 * <p>Title: SupplyBaseInfo</p>
 * <p>Description: 供应商基本信息实体类</p>
 * <p>Company: tongking</p> 
 * @author jackson wang
 * @since  1.0
 * @version 1.0
 * @date 2016年6月1日 下午10:22:46
 */
@Entity
@Table(name=ConstSysParam.MODULE_SUPPLY_BASEINFO)
public class SupplyBaseInfo extends BaseTypeDomain implements BaseTypeDomainInf,BaseTreeNodeInf {

	/*
	 * 主键
	 */
	@Id
//	@Column
//	@GeneratedValue(strategy=GenerationType.TABLE,generator="supplyBaseinfoGenerator")
//	@TableGenerator(name="supplyBaseinfoGenerator",
//					table="sysman_generation_key",
//					pkColumnValue=ConstSysParam.MODULE_SUPPLY_BASEINFO,
//					pkColumnName="primary_key",
//					valueColumnName="key_value",
//					allocationSize=1)
	
	
	//实际id值
	@Transient
	private Long rid;
	
	
	public Long getRid() {
		return rid;
	}


	public void setRid(Long rid) {
		this.rid = rid;
	}

	//启用标志
	private String is_used;
	
	//与其他数据库供应商提供的视图进行链接的字段
	private String dwxh;
	
	
	public String getIs_used() {
		return is_used;
	}


	public void setIs_used(String is_used) {
		this.is_used = is_used;
	}

	//附件编号
	private String agreementdjbh;
	
	//诚信评估人	None
	private String assessors ;
	
	private Date assess_time;
	
	//审核依据(clob)
	//private String auditaccording;
	
	private Date auditdate;
	
	private String auditname;
	//审核类型
	private String audittype;
	
	//审核状态
	private String status;
	
	//被授权人
	private String authorizedperson;
	//联系电话
	private String contactphone;
	//联系人附件表id
	private String contractdjbh;
	//诚信描述
	private String describe;
	//建档时间
	private Date filling_time;
	//诚信等级
	private String grade;
	//联系人身份证
	private String identitycard;
	//诚信档案类别
	private String integritytype;
	
	@Transient
	private String integritytypeName;
	//置顶标志
	private String is_top;
	//法定代表人
	private String legalrepresentative;
	//账号
	private String numbeaccount;
	//开户银行
	private String openingbank;
	//经营范围(clob)
	//private String operatearea;
	//经营许可证号
	private String operatepermitnumber;
	//许可开始时间
	private String permittimes;
	//许可结束时间
	private String permittimee;
	//评估公示
	private String pinggu_publicity;
	
	private String pinyincode;
	//公示
	private String publicity;
	
	private String qyfryyzzzch;
	//公示排序顺序
	private String seq_no;
	
	//供应商地址
	private String sup_address;
	//供应商名称
	private String sup_name;
	
	//供应商类型
	private Long sup_type;
	
	//置顶时间
	private Date top_time;
	
	//登记时间
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date register_time;
	
	//条数
	
	private Long totalnumber;
	
	
	//不良信息内容临时保存
	@Transient	
	private String record_text;
	
	//不良记录时间临时保存
	@Transient	
	private String record_time;	
	
	
	//营业执照临时保存
	@Transient
	private String supply_businesslicence;
	
	//被授权人培训证临时保存
	@Transient	
	private String supply_education;
	
	//法人授权书临时保存
	@Transient	
	private String supply_authorizecertification;
		
	//社保证明临时保存
	@Transient	
	private String supply_socialsecurity;
	
	//售后服务承诺书临时保存
	@Transient	
	private String supply_aftersaleservice;
	
	
	//无行贿记录证明
	@Transient	
	private String supply_nobriberecord;
	
	//廉洁购销合同
	@Transient	
	private String supply_honestcontract;	

	
	/**
	 * 节点类型定义,t:type,l:leaf
	 */
	@Transient
	private String nodeType = "L";
	
	/**
	 * 节点业务编码全称
	 */
	@Transient
	private String fullBizcode ;
	
	@Transient
	private Long parentid;
	
	@Transient
	private String parentName;
	
	@Transient
	private String state ="open";
	
	
	@Transient
	private String text;

	public Date getRegister_time() {
		return register_time;
	}


	public void setRegister_time(Date register_time) {
		this.register_time = register_time;
	}


	public Long getSup_type() {
		return sup_type;
	}


	public void setSup_type(Long sup_type) {
		this.sup_type = sup_type;
	}


	

	public String getDwxh() {
		return dwxh;
	}


	public void setDwxh(String dwxh) {
		this.dwxh = dwxh;
	}


	public String getRecord_time() {
		return record_time;
	}


	public void setRecord_time(String record_time) {
		this.record_time = record_time;
	}


	public String getSupply_education() {
		return supply_education;
	}


	public void setSupply_education(String supply_education) {
		this.supply_education = supply_education;
	}


	public String getSupply_authorizecertification() {
		return supply_authorizecertification;
	}


	public void setSupply_authorizecertification(String supply_authorizeCertification) {
		this.supply_authorizecertification = supply_authorizeCertification;
	}


	public String getSupply_socialsecurity() {
		return supply_socialsecurity;
	}


	public void setSupply_socialsecurity(String supply_socialsecurity) {
		this.supply_socialsecurity = supply_socialsecurity;
	}


	public String getSupply_aftersaleservice() {
		return supply_aftersaleservice;
	}


	public void setSupply_aftersaleservice(String supply_aftersaleservice) {
		this.supply_aftersaleservice = supply_aftersaleservice;
	}


	public String getRecord_text() {
		return record_text;
	}


	public void setRecord_text(String record_text) {
		this.record_text = record_text;
	}


	public Long getTotalnumber() {
		return totalnumber;
	}

	

	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public void setTotalnumber(Long totalnumber) {
		this.totalnumber = totalnumber;
	}


	public String getAgreementdjbh() {
		return agreementdjbh;
	}


	public void setAgreementdjbh(String agreementdjbh) {
		this.agreementdjbh = agreementdjbh;
	}


	public String getAssessors() {
		return assessors;
	}


	public void setAssessors(String assessors) {
		this.assessors = assessors;
	}


	public Date getAssess_time() {
		return assess_time;
	}


	public void setAssess_time(Date assess_time) {
		this.assess_time = assess_time;
	}


	public Date getAuditdate() {
		return auditdate;
	}


	public void setAuditdate(Date auditdate) {
		this.auditdate = auditdate;
	}


	public String getAuditname() {
		return auditname;
	}


	public void setAuditname(String auditname) {
		this.auditname = auditname;
	}


	public String getAudittype() {
		return audittype;
	}


	public void setAudittype(String audittype) {
		this.audittype = audittype;
	}


	public String getAuthorizedperson() {
		return authorizedperson;
	}


	public void setAuthorizedperson(String authorizedperson) {
		this.authorizedperson = authorizedperson;
	}


	


	public String getContactphone() {
		return contactphone;
	}


	public void setContactphone(String contactphone) {
		this.contactphone = contactphone;
	}


	public String getContractdjbh() {
		return contractdjbh;
	}


	public void setContractdjbh(String contractdjbh) {
		this.contractdjbh = contractdjbh;
	}


	public String getDescribe() {
		return describe;
	}


	public void setDescribe(String describe) {
		this.describe = describe;
	}


	public Date getFilling_time() {
		return filling_time;
	}


	public void setFilling_time(Date filling_time) {
		this.filling_time = filling_time;
	}


	public String getGrade() {
		return grade;
	}


	public void setGrade(String grade) {
		this.grade = grade;
	}


	public String getIdentitycard() {
		return identitycard;
	}


	public void setIdentitycard(String identitycard) {
		this.identitycard = identitycard;
	}

	public String getIntegritytype() {
		return integritytype;
	}


	public void setIntegritytype(String integritytype) {
		this.integritytype = integritytype;
	}


	public String getIs_top() {
		return is_top;
	}


	public void setIs_top(String is_top) {
		this.is_top = is_top;
	}


	public String getLegalrepresentative() {
		return legalrepresentative;
	}


	public void setLegalrepresentative(String legalrepresentative) {
		this.legalrepresentative = legalrepresentative;
	}


	public String getNumbeaccount() {
		return numbeaccount;
	}


	public void setNumbeaccount(String numbeaccount) {
		this.numbeaccount = numbeaccount;
	}


	public String getOpeningbank() {
		return openingbank;
	}


	public void setOpeningbank(String openingbank) {
		this.openingbank = openingbank;
	}


	public String getOperatepermitnumber() {
		return operatepermitnumber;
	}


	public void setOperatepermitnumber(String operatepermitnumber) {
		this.operatepermitnumber = operatepermitnumber;
	}


	public String getPermittimes() {
		return permittimes;
	}


	public void setPermittimes(String permittimes) {
		this.permittimes = permittimes;
	}


	public String getPermittimee() {
		return permittimee;
	}


	public void setPermittimee(String permittimee) {
		this.permittimee = permittimee;
	}


	public String getPinggu_publicity() {
		return pinggu_publicity;
	}


	public void setPinggu_publicity(String pinggu_publicity) {
		this.pinggu_publicity = pinggu_publicity;
	}


	public String getPinyincode() {
		return pinyincode;
	}


	public void setPinyincode(String pinyincode) {
		this.pinyincode = pinyincode;
	}


	public String getPublicity() {
		return publicity;
	}


	public void setPublicity(String publicity) {
		this.publicity = publicity;
	}


	public String getQyfryyzzzch() {
		return qyfryyzzzch;
	}


	public void setQyfryyzzzch(String qyfryyzzzch) {
		this.qyfryyzzzch = qyfryyzzzch;
	}


	public String getSeq_no() {
		return seq_no;
	}


	public void setSeq_no(String seq_no) {
		this.seq_no = seq_no;
	}


	public String getSup_address() {
		return sup_address;
	}


	public void setSup_address(String sup_address) {
		this.sup_address = sup_address;
	}


	public String getSup_name() {
		return sup_name;
	}


	public void setSup_name(String sup_name) {
		this.sup_name = sup_name;
	}


	public Date getTop_time() {
		return top_time;
	}


	public void setTop_time(Date top_time) {
		this.top_time = top_time;
	}


	public String getIntegritytypeName() {
		return integritytypeName;
	}


	public void setIntegritytypeName(String integritytypeName) {
		this.integritytypeName = integritytypeName;
	}
	
	public String getNodeType() {
		return nodeType;
	}


	public void setNodeType(String nodeType) {
		this.nodeType = nodeType;
	}


	public String getFullBizcode() {
		return fullBizcode;
	}


	public void setFullBizcode(String fullBizcode) {
		this.fullBizcode = fullBizcode;
	}


	public Long getParentid() {
		return parentid;
	}


	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}


	public String getParentName() {
		return parentName;
	}


	public void setParentName(String parentName) {
		this.parentName = parentName;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	@Override
	public String getText() {
		// TODO Auto-generated method stub
		return this.sup_name;
	}


	public void setText(String text) {
		this.sup_name = text;
	}


	public String getName() {
		return sup_name;
	}


	public void setName(String name) {
		this.sup_name = name;
	}


	/**
	 * @return the supply_businesslicence
	 */
	public String getSupply_businesslicence() {
		return supply_businesslicence;
	}


	/**
	 * @param supply_businesslicence the supply_businesslicence to set
	 */
	public void setSupply_businesslicence(String supply_businesslicence) {
		this.supply_businesslicence = supply_businesslicence;
	}


	/**
	 * @return the supply_nobriberecord
	 */
	public String getSupply_nobriberecord() {
		return supply_nobriberecord;
	}


	/**
	 * @param supply_nobriberecord the supply_nobriberecord to set
	 */
	public void setSupply_nobriberecord(String supply_nobriberecord) {
		this.supply_nobriberecord = supply_nobriberecord;
	}


	/**
	 * @return the supply_honestcontract
	 */
	public String getSupply_honestcontract() {
		return supply_honestcontract;
	}


	/**
	 * @param supply_honestcontract the supply_honestcontract to set
	 */
	public void setSupply_honestcontract(String supply_honestcontract) {
		this.supply_honestcontract = supply_honestcontract;
	}
	
	

}
